package de.andreavicentini.teatralia.renderers;

import java.text.MessageFormat;

import de.andreavicentini.teatralia.pages.repertoire.IPlay;

public class PlayImageRenderer {

	public String render(IPlay play) {
		if (play.getImage() == null) return "";
		
		return MessageFormat.format("" +
				"<a href=\"{0}\" target=_new>" +
				"<img src=\"{0}\" height=180 style=\"float:left; margin-right:20px; margin-bottom:10px\"></a>", play.getImage());
	}
}
